package org.idea.qiyu.framework.nacos.starter.config;

import org.idea.qiyu.framework.nacos.starter.properties.NacosProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Author linhao
 * @Date created in 8:09 上午 2021/8/13
 */
@Configuration
@EnableConfigurationProperties(value = NacosProperties.class)
public class NacosConfiguration implements InitializingBean {

    private static final Logger LOGGER = LoggerFactory.getLogger(NacosConfiguration.class);


    @Override
    public void afterPropertiesSet() throws Exception {
        LOGGER.info(" --------------- NacosConfiguration config is ready --------------- ");
    }
}
